<?php

/**
 * Configuration values
 */
define('GOOGLE_ANALYTICS_ID', ''); // UA-XXXXX-Y (Note: Universal Analytics only, not Classic Analytics)

if (!defined('WP_ENV')) {
  define('WP_ENV', 'development');  // scripts.php checks for values 'production' or 'development'
}


/**
 * Define Directory Location Constants 
 */
define( 'APOLLO_PARENT_DIR', get_template_directory() );

define( 'APOLLO_INCLUDES_DIR', APOLLO_PARENT_DIR. '/inc' );	
define( 'APOLLO_ADMIN_DIR', APOLLO_INCLUDES_DIR . '/admin' );
define( 'APOLLO_WIDGETS_DIR', APOLLO_INCLUDES_DIR . '/widgets' );
define( 'APOLLO_SHORTCODE_DIR', APOLLO_INCLUDES_DIR . '/shortcodes' );
define( 'APOLLO_ADMIN_ASSETS_DIR', APOLLO_ADMIN_DIR . '/assets' );
define( 'APOLLO_ADMIN_LIB_DIR', APOLLO_ADMIN_DIR . '/lib' );

define( 'APOLLO_ADMIN_CSS_DIR', APOLLO_ADMIN_ASSETS_DIR . '/css' );
define( 'APOLLO_ADMIN_JS_DIR', APOLLO_ADMIN_ASSETS_DIR . '/js' );
define( 'APOLLO_ADMIN_IMAGES_DIR', APOLLO_ADMIN_ASSETS_DIR . '/images' );


/** 
 * Define URL Location Constants 
 */
define( 'APOLLO_PARENT_URL', get_template_directory_uri() );

define( 'APOLLO_INCLUDES_URL', APOLLO_PARENT_URL. '/inc' );
define( 'APOLLO_ADMIN_URL', APOLLO_INCLUDES_URL. '/admin' );

define( 'APOLLO_ADMIN_ASSETS', APOLLO_ADMIN_URL. '/assets' );

define( 'APOLLO_ADMIN_CSS_URL', APOLLO_ADMIN_ASSETS . '/css' );
define( 'APOLLO_ADMIN_JS_URL', APOLLO_ADMIN_ASSETS . '/js' );
define( 'APOLLO_ADMIN_IMAGES_URL', APOLLO_ADMIN_ASSETS . '/images' );

/**
 * Default template
 */
define( 'APOLLO_THEME_ACTIVATE_SPOTLIGHT', 1 );
define( 'APOLLO_THEME_ACTIVATE_OVERRIDE_CSS', 0 );
define( 'APOLLO_THEME_PRIMARY_COLOR', '#fcb234' );
define( 'APOLLO_THEME_HEADER', APOLLO_ADMIN_LIB_DIR. '/theme-options/default-template/header.php' );
define( 'APOLLO_THEME_FOOTER', APOLLO_ADMIN_LIB_DIR. '/theme-options/default-template/footer.php' );
define( 'APOLLO_THEME_SITE_INFO', APOLLO_ADMIN_LIB_DIR. '/theme-options/default-template/siteinfo.php' );
define( 'APOLLO_DEFAULT_LAYOUT', 'right_sidebar_one_column' );
define( 'APOLLO_DEFAULT_BACKGROUND_COLOR', '#ffffff' );

/**
 * Add body class default
 */
function apollo_default_body_class( $classes ) {
    
    if ( isset( $virtue['boxed_layout'] ) ) {
        $classes[] = $virtue['boxed_layout'];
    }
    
    return $classes;
}
add_filter('body_class', 'apollo_default_body_class');

/**
 * Define which pages shouldn't have the sidebar
 *
 * See lib/sidebar.php for more details
 */
function apollo_display_sidebar() {
  $sidebar_config = new apollo_Sidebar(
    /**
     * Conditional tag checks (http://codex.wordpress.org/Conditional_Tags)
     * Any of these conditional tags that return true won't show the sidebar
     *
     * To use a function that accepts arguments, use the following format:
     *
     * array('function_name', array('arg1', 'arg2'))
     *
     * The second element must be an array even if there's only 1 argument.
     */
    array(
      'is_404',
      'is_front_page'
    ),
    /**
     * Page template checks (via is_page_template())
     * Any of these page templates that return true won't show the sidebar
     */
    array(
      'template-custom.php'
    )
  );

  return apply_filters('apollo/display_sidebar', $sidebar_config->display);
}

/**
 * $content_width is a global variable used by WordPress for max image upload sizes
 * and media embeds (in pixels).
 *
 * Example: If the content area is 640px wide, set $content_width = 620; so images and videos will not overflow.
 * Default: 1140px is the default Bootstrap container width.
 */
if (!isset($content_width)) { $content_width = 1140; }
